package com.app.model.main;

import java.util.ArrayList;
import java.util.List;

public class CommentsOfArticle {
    private Long id;

    private Long articleId;

    private Long userId;

    private String time;

    private String image;

    private String content;

    public Long getId() {
        return id;
    }

    public CommentsOfArticle setId(Long id) {
        this.id = id;
        return this;
    }

    public Long getArticleId() {
        return articleId;
    }

    public CommentsOfArticle setArticleId(Long articleId) {
        this.articleId = articleId;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public CommentsOfArticle setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public String getTime() {
        return time;
    }

    public CommentsOfArticle setTime(String time) {
        this.time = time;
        return this;
    }

    public String getImage() {
        return image;
    }

    public CommentsOfArticle setImage(String image) {
        this.image = image;
        return this;
    }

    public String getContent() {
        return content;
    }

    public CommentsOfArticle setContent(String content) {
        this.content = content;
        return this;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null){
            return false;
        }
        if (this == obj){
            return true;
        }
        if (obj instanceof CommentsOfArticle){
            CommentsOfArticle o = (CommentsOfArticle) obj;
            return this.id == o.id;
        }
        return false;
    }

    @Override
    public int hashCode() {
        return (int) (id ^ id>>>32);
    }

}